﻿using Logistics.Contract;
using Logistics.Data;
using Logistics.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Logistics.Power
{
    public class PowerManagerAppService:ApplicationService
    {
        private readonly IPowerManagerRepository _repository;
        public PowerManagerAppService(IPowerManagerRepository repository)
        {
            _repository = repository;
        }
        public List<PowerManagerDto> GetListAsyncSev()
        {
            var list = _repository.GetListAsync();
            return ObjectMapper.Map<List<PowerManager>, List<PowerManagerDto>>(list);
        }
    }
}
